package com.antoco.operation.bigscreen.repository;

import com.antoco.operation.bigscreen.model.entity.Sensor;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SensorRepository extends JpaRepository<Sensor, Long> {
    @Query(value = "SELECT * FROM sensor WHERE dev_big_type = ?",
            nativeQuery = true)
    List<Sensor> findBySensorBigType(String devBigType);
}